import java.util.ArrayList;

public class ClassManagement {
    ArrayList<Student> students = new ArrayList<>();

    Function function = new FunctionCase2();

    public ClassManagement(){
        students.add(new Student("张三",'男',87));
        students.add(new Student("李四",'男',99));
        students.add(new Student("王五",'男',88));
        students.add(new Student("赵六",'男',90));
    }

    //打印全班的信息
    public void printInformation(){
        function.PrintInformation(students);
    }
    //打印出班级平均分
    public void printAverageScore(){
        function.PrintAverageScore(students);
    }

}
